﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using SalePartial.BLL;
using SalePartial.Model;

public partial class controls_front_InfoSearch : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void column_SelectedIndexChanged(object sender, EventArgs e)
    {
        int columnId = ((DropDownList)(sender)).SelectedIndex;
        IList list = null;
        
        ////初始化默?的???
        //SalePartial.Model.InformationInfo info = new SalePartial.Model.InformationInfo(0, "全部子?目");

        //if (columnId != 0)  //0表示所有?目
        //{
        //    SalePartial.BLL.Information infoBll = new SalePartial.BLL.Information();
        //    list = infoBll.GetInfoTypeById(columnId);
        //    list.Insert(0, info);
        //}
        //else
        //{
        //    list = new ArrayList();
        //    list.Add(info);
        //}

        subTypeList.DataSource = list;
        subTypeList.DataTextField = "TypeName";
        subTypeList.DataValueField = "TypeId";
        subTypeList.DataBind();
    }

    protected void search_Click(object sender, EventArgs e)
    {
        int columnId = this.typeList.SelectedIndex;
        int subColumnId = this.subTypeList.SelectedIndex;
    }
}
